package logiexport.session;

import logiexport.webpages.HomePage;

import org.apache.wicket.Page;
import org.apache.wicket.Session;
import org.apache.wicket.authroles.authentication.AuthenticatedWebApplication;
import org.apache.wicket.authroles.authentication.AuthenticatedWebSession;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.Request;
import org.apache.wicket.request.Response;



public class SignInApplication extends AuthenticatedWebApplication {

	public SignInApplication() {
		super();
		// TODO Auto-generated constructor stub
		System.out.println("SIGNIN_APPLICATION -----------------------------");
	}
	
	@Override
	   public Class<? extends Page> getHomePage() {
	       return HomePage.class;
	   }

	   @Override
	    public Session newSession(Request request, Response response)
	    {
		   System.out.println("NEW_SESSION !!!!!!!!!!!!!!!!!!!!!!!");
	        return new SignInSession(request);
	    }


	   @Override
	   protected void init() {
	       super.init(); // NO OLVIDAR
	   }
	 
	 
	   @Override
	   protected Class<? extends WebPage> getSignInPageClass() { // Login
		   System.out.println("HOME_PAGE!!!!");
	       return HomePage.class;
	   }

	   @Override
	   protected Class<? extends AuthenticatedWebSession> getWebSessionClass() {
		   System.out.println("SignInSession !!!!!!!!!!!!!!!!!!!!!!!!!");
	       return SignInSession.class;		  
	   }	   

	
	
}
